						**Replication Dofile**
					**How Leaders' Prior Combat Experience**
 **Influences the Likelihood of Peace Agreements in Civil Conflicts**
				           **Tappe Ortiz**
						   **Main Results
						   
. ssc install outreg2
. ssc install egenmore

**Table II Peace agreements**
stset year, failure(peaceagree_all==1) origin(time year) id(dyadep) exit(year==2015)
*Model 1*
stcrreg leader_combat leader_leadershipchange foreignint strength intensity territory dyad_count no_negotiations lnGDP2 democ if year>1988, robust cluster(dyadid) compete(peaceagree_all==2)
*Model 2*
stcrreg leader_combservice leader_combtraining leader_leadershipchange foreignint strength intensity territory  dyad_count no_negotiations lnGDP2 democ if year>1988, robust cluster(dyadid) compete(peaceagree_all==2)

**Figure I**
stset year, failure(peaceagree_all==1) origin(time year) id(dyadep) exit(year==2015)
quietly stcrreg
stcrreg leader_combat leader_leadershipchange foreignint strength intensity territory  dyad_count no_negotiations lnGDP2 democ if year>1988, robust cluster(dyadid) compete(peaceagree_all==2)
stcurve, cumhaz at1(leader_combat=1)at2(leader_combat=0)

